const db = require("./dbconfig")
// let sql = 'insert into user(userId,account,password) value(?,?,?)'
// let sql = `update user set birthday='null' where userId =19  `
// let sql = "INSERT INTO test SET name = '张s' ;"
// let sql = `select * from activity `;
let sql = `SELECT * FROM activity WHERE activityId IN (SELECT activityId FROM activity_attend WHERE userId = '19');`
// // date.toISOString().split('T')[0]
// const data = { name: '李四', age: "25" };

let params = []
db.sqlConnection(sql, params).then((res) => {
	console.log('res:', res)
})